const joi = require('joi')
//对帐号验证
const account = joi.string().alphanum().min(6).max(12).required()
//密码验证
const password = joi.string().pattern(/^(?![0-9]+$)[a-z0-9]{1,50}$/).min(6).max(12).required()
exports.login_limit = {
    //对req.body里面数据进行验证
    body:{
        account,
        password
    }
}